<tpl> include file='sys_config.head.html' </tpl>
<link href="<tpl> $site_url </tpl>/js/jquery/ui.theme.css" rel="stylesheet" type="text/css" />
<div id="doc3">
	<div id="yui-main">
		<div class="yui-g">
 			<div id="divinbox">
				<div class="gtlbar">
					<div class="gtlbar-left"><tpl> $langSysMemManage </tpl> &gt;&gt; <tpl> $langSysMemList </tpl></div>
				</div>
				<div class="ibxbar2">
					<div class="on-700">
						<form action="member.manage.php" method="get" id="form_p_list">
						<input type="hidden" name="action" id="action" value="ajax_list" />
						<table width="100%" border="0" cellpadding="0">
							<tr>
								<th class="wd"><tpl> $langSysMemEstate </tpl>:</th>
								<td class="it-0">
									<select name="state" id="state">
										<option value=""><tpl> $langSysMemPleaseSelect </tpl></option>
										<option value="1"><tpl> $langSysMemSnuff </tpl></option>
										<option value="0"><tpl> $langSysMemLocked </tpl></option>
									</select>
								</td>
								<th class="wd"><tpl> $langSysMemName </tpl>:</th>
								<td class="it-4">
									<input class="fct-input" value="<tpl> $condition.txtloginname </tpl>" name="txtloginname" id="txtloginname" type="text" />
								</td>
							</tr>
							<tr>
								<th class="wd"><tpl> $langSysMemRegTime </tpl>:</th>
								<td class="it-5" colspan="3">
									<input class="fct-input" readonly="true" value="<tpl> $condition.start_date </tpl>" name="start_date" id="start_date" type="text" /> <tpl> $langSysMemTo </tpl>
									<input class="fct-input" readonly="true" value="<tpl> $condition.end_date </tpl>" name="end_date" id="end_date" type="text" />
								</td>
							</tr>
							<tr>
								<th class="wd"><tpl> $langSysMemMail </tpl>:</th>
								<td class="it-2" colspan="2"> 
									<input class="fct-input" value="<tpl> $condition.txtemail </tpl>" name="txtemail" id="txtemail" type="text" />
								</td>
								<td class="mk-2"><input class="bthl" name="" value="<tpl> $langSysMemSeach </tpl>" type="submit" /></td>
							</tr>
						</table>
						</form>
					</div>
				</div>
				<div class="sh-hi-1" id="search_toggle">
					<span></span>
				</div>
			</div>
			<form action="member.manage.php" id="form_del" name="form_del" method="post" onsubmit="return confirm_alert('<tpl> $langCConfirmDelete </tpl>');">
			<input type="hidden" name="action" id="action" value="del" />
			<div class="fixbgwhite">
				<table class="es" id="bianse">
					<tr class="es-tr">
						<td class="es-6"></td>
						<td class="es-4"><tpl> $langSysMemberName </tpl></td>
						<td class="es-2"><tpl> $langSysMemberMail </tpl></td>
						<td class="es-2"><tpl> $langSysMemRegTime </tpl></td>
						<td class="es-2"><tpl> $langSysEstate </tpl></td>
						<td class="es-2"><tpl> $langCOperation </tpl></td>
					</tr>
					<tpl> if $member_array[0].member_id neq'' </tpl>
		  				<tpl> section name=loop loop=$member_array </tpl>
					<tr class="es-td">
						<td id="check-1"><input name="member_id[]" type="checkbox" value="<tpl> $member_array[loop].member_id </tpl>"/></td>
						<td><tpl> $member_array[loop].login_name </tpl></td>
						<td><tpl> $member_array[loop].email </tpl></td>
						<td><tpl> $member_array[loop].regist_time </tpl></td>
						<td><tpl> $member_array[loop].state </tpl></td>
						<td>
							<a href="member.manage.php?action=modify&member_id=<tpl> $member_array[loop].member_id </tpl>"><tpl> $langCedit </tpl></a>
						</td>
					</tr>
						<tpl> /section </tpl>
					<tpl> /if </tpl>
				</table>
			</div>
			<tpl> if $member_array[0].member_id eq'' </tpl>
				<div class="msk-wi">
					<div class="msk"><tpl> $langSysCNoThing </tpl></div>
				</div>
			<tpl> /if </tpl>
			<div class="ibxbot">
				<div class="fle">
					<b><tpl> $langSysSel </tpl>:</b>
					<a href="javascript:;" onclick="sel_all_checkbox('form_del');"><tpl> $langSysAll </tpl></a> - <a href="javascript:;" onclick="sel_negative_checkbox('form_del');"><tpl> $langSysSelNegative </tpl></a> - <a href="javascript:;" onclick="sel_none_checkbox('form_del');"><tpl> $langSysSelNone </tpl></a>
				</div>
				<div class="fri">
					<tpl> if $member_array[0].member_id neq'' </tpl>
					<tpl> $page_list </tpl>
					<tpl> /if </tpl>
				</div>
			</div>
			<div class="ibxbar">
				<input class="bthl" name="" value="<tpl> $langSysMDel </tpl>" type="submit" />
				<input class="bthl" name="" id="lock" value="<tpl> $langSysMemLocked </tpl>" type="button" />
				<input class="bthl" name="" id="unlock" value="<tpl> $langSysMemUnLocked </tpl>" type="button" />
			</div>
			</form>
		</div>
	</div>
</div>
<tpl> include file='sys_config.js.html' </tpl>
<script src="<tpl> $site_url </tpl>/js/jquery/ui.datepicker.js"></script>
<script>
$(document).ready(function(){
	$('#lock').click(function(){
		$('input[@id=action]').val('lock');
		document.getElementById('form_del').submit();
	});
	$('#unlock').click(function(){
		$('input[@id=action]').val('unlock');
		document.getElementById('form_del').submit();
	});
	//
	$('#start_date').datepicker({
		dateFormat:'yy-mm-dd',
		changeMonth: true,
		changeYear: true
	});
	$('#end_date').datepicker({
		dateFormat:'yy-mm-dd',
		changeMonth: true,
		changeYear: true
	});
});
</script>
</body>
</html>
